package com.indexingsystem.system.service;

import com.indexingsystem.boss.common.PagedResult;
import com.indexingsystem.boss.entity.UserInstitution;

public interface IUserInstitutionService {
	
	int deleteByPrimaryKey(String userInstitutionId) throws Exception;
    
    UserInstitution selectByPrimaryKey(String userInstitutionId);
    
    PagedResult<UserInstitution> selectUserInstitutionList(Integer pageNo, Integer pageSize);

    int updateByPrimaryKeySelective(UserInstitution record) throws Exception;

//	int insertSelective(UserInstitution record) throws Exception;    
	
	/**
	 * 通过userId删除用户机构关系信息.
	 * @param userId
	 * @return
	 */
	int deleteUserInstitutionByUserId(String userId) throws Exception;
	
	/**
	 * 通过userId查询用户机构关系.
	 * @param userId
	 * @return
	 */
	UserInstitution selectUserInstitutionByUserId(String userId);
}